package model

import (
	"gorm.io/gorm"
	"time"
)

type EduComment struct {
	ID        int            `json:"id"`
	CourseID  int            `json:"course_id"`
	TeacherID int            `json:"teacher_id"`
	MemberID  int            `json:"member_id"`
	Nickname  string         `json:"nickname"`
	Avatar    string         `json:"avatar"`
	Content   string         `json:"content"`
	CreatedAt time.Time      `json:"created_at"`
	UpdatedAt time.Time      `json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at"`
}

func (EduComment) TableName() string {
	return "edu_comment"
}
